import { StackNavigator } from 'react-navigation';
import STRING from '../const_string_zh_CN';
import DiscoveryTab from '../pages/main_pages/discovery_tab_page';
import CunrrentTermCourseList from '../pages/discovery/cunrrent_term_course_list';
import DiscoveryInteractStudent from '../pages/discovery/discovery_interact_student';
import InteractionPersonalPage from '../pages/discovery/course_question_list';
import QuestionTeacher from '../pages/discovery/question_teacher';
import QuestionStudent from '../pages/discovery/question_student';
import CourseClassList from '../pages/discovery/class_list';
import OnlineStatisticsStudent_now from '../pages/discovery/Online_statistics_now_student';
import OnlineStatisticsStudent_before from '../pages/discovery/Online_statistics_before_student';
import AnswerQuestionStatisticsTeacher from '../pages/discovery/answer_question_statistics_teacher';

//学生历史答题列表 
import AnswerListBeforeStudent from '../pages/discovery/answer_list_before_student'; 
//通过历史答题题目id获取题目内容
import QuestionStudentBefore from '../pages/discovery/question_student_before'; 
    


//title 发现
const DiscoveryMainOptions1  = {
    headerTitle: STRING.discovery_page_title,
    headerTitleStyle: {
        color: 'black',
        textAlign: 'center',
        alignSelf: 'center',
    },
}
//title 发现
const DiscoveryMainOptions2  = {
    headerTitle: STRING.discovery_page_title,
    headerTitleStyle: {
        color: 'black',
        textAlign: 'center',
        alignSelf: 'center',
         paddingRight:'7%',
    },
}
//title 发现
const DiscoveryMainOptions  = {
    //headerTitle: STRING.discovery_page_title,
    headerTitleStyle: {
        color: 'black',
        textAlign: 'center',
        alignSelf: 'center',
        paddingRight:'7%',
    },
}
const MOOCDiscoveryStackNavigator = StackNavigator({
    MessageTab: { screen:  DiscoveryTab, navigationOptions: DiscoveryMainOptions1 },
    CunrrentTermCourseList : { screen :CunrrentTermCourseList , navigationOptions:DiscoveryMainOptions },
    DiscoveryInteractStudent: { screen :DiscoveryInteractStudent, navigationOptions:DiscoveryMainOptions },
    InteractionPersonalPage: { screen : InteractionPersonalPage, navigationOptions:DiscoveryMainOptions }, 
    QuestionTeacher: { screen :QuestionTeacher, navigationOptions: DiscoveryMainOptions   },
    QuestionStudent: { screen :QuestionStudent, navigationOptions:DiscoveryMainOptions  },
    CourseClassList: { screen : CourseClassList, navigationOptions: DiscoveryMainOptions   },
    AnswerQuestionStatisticsTeacher: { screen : AnswerQuestionStatisticsTeacher, navigationOptions: DiscoveryMainOptions  },
    OnlineStatisticsStudentNow: { screen : OnlineStatisticsStudent_now, navigationOptions: DiscoveryMainOptions },
    OnlineStatisticsStudentBefore: { screen : OnlineStatisticsStudent_before, navigationOptions: DiscoveryMainOptions },

    //学生历史答题列表
    AnswerListBeforeStudent: { screen : AnswerListBeforeStudent, navigationOptions:DiscoveryMainOptions },
    //通过历史答题题目id获取题目内容
    QuestionStudentBefore: { screen : QuestionStudentBefore, navigationOptions:DiscoveryMainOptions },
    
    


}, {
        //headerMode: 'none'
    });

export default MOOCDiscoveryStackNavigator;
